/**
 * Auto gen via dbpojo-gen.
 */
package com.us.usws.service.cud.impl;

import java.util.Date;

import com.us.usws.common.SiteConstants;
import com.us.usws.dao.UserLoginLogDAO;
import com.us.usws.model.domain.system.UserLoginLog;
import com.us.usws.service.cud.UserLoginLogCUDService;

/**
 * Service RO impl class
 * @author robot
 */
public class UserLoginLogCUDServiceImpl implements UserLoginLogCUDService {

	/**
	 * DAO instance
	 */
	private UserLoginLogDAO dao = new UserLoginLogDAO();

	@Override
	public void recordSuccessLoginLog(String userUid, String ipAddr) {
		UserLoginLog ret = new UserLoginLog();
		ret.setIpAddr(ipAddr);
		ret.setIsSuccess(SiteConstants.STR_BOOLEAN_YES);
		ret.setLoginDate(new Date());
		ret.setUserUid(userUid);
		dao.insertUserLoginLog(ret);

	}

}